Skip to content

Prevent API tests from hanging during DevWorkspace cleanup - #24015

Merged
dmytro-ndp merged 1 commit into
eclipse-che:mainfrom
SkorikSergey:boundDevWorkspaceDeletionTimeout
Nov 5, 2026
Merged

dmytro-ndp merged 1 commit into
eclipse-che:mainfrom
SkorikSergey:boundDevWorkspaceDeletionTimeout

Conversation

@SkorikSergey

@SkorikSergey SkorikSergey commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

Adds a two-minute timeout to DevWorkspace deletion in the shared e2e cleanup utility.

If the DevWorkspace finalizer patch is rejected—for example, when the admission webhook cannot resolve the editor plugin—oc delete dw may wait indefinitely for finalizers. This caused the JBossEapDevFileAPI pipeline to remain stuck until the parent pipeline timeout.

Changes

  • Add --timeout=2m to oc/kubectl delete dw.
  • Apply the timeout to all API tests using deleteDevWorkspace.
  • Preserve normal waiting behavior when deletion succeeds.

Screenshot/screencast of this PR

What issues does this PR fix or reference?

https://redhat.atlassian.net/browse/CRW-14141

How to test this PR?

PR Checklist

As the author of this Pull Request I made sure that:

Reviewers

Reviewers, please comment how you tested the PR when approving it.

Summary by CodeRabbit

  • Tests
    • End-to-end test workflows now allow up to two minutes for DevWorkspace deletion to complete.

@coderabbitai

coderabbitai Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The DevWorkspace deletion command now specifies a two-minute timeout instead of using the default timeout.

Changes: DevWorkspace deletion

Layer / File(s) Summary
Set the deletion timeout
tests/e2e/utils/KubernetesCommandLineToolsExecutor.ts
The DevWorkspace deletion command now passes --timeout=2m.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Bug fix

Merge Risk: Minimal · up to 797aa

The cleanup wait is now bounded in the default OpenShift environment, with no identified merge-blocking risk.

Pre-merge checks: Passed 5

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the main change: bounding DevWorkspace deletion so API tests stop hanging during cleanup. The raw summary confirms the change adds a two-minute timeout to the delete call in the shared…
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: bounding DevWorkspace deletion so API tests stop hanging during cleanup. The raw summary confirms the change adds a two-minute timeout to the delete call in the shared e2e cleanup utility, and the objectives state the same purpose. The title is specific and matches the changeset.

Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 1 files.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Tip

🎯 Customize your risk assessments

Guide how CodeRabbit assesses merge risk and security architecture risk. Highlight sensitive changes and explain your security boundaries using Merge Risk Instructions and Security Risk Instructions in your review settings. Security architecture risk assessments require the Advanced plan or above.

✅ Automatic approvals, with your rules

Let CodeRabbit approve pull requests once required threads are resolved, pre-merge checks pass, and your risk limits are met. Enable Automatic approvals in review settings, with overrides for teams or file paths.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 50b3ccac-dbc4-4931-a9c7-a4bc97fa530a
Commits

Reviewing files that changed from the base of the PR and between 1babfeb and 797aab9.

Files selected for processing: 1

  • tests/e2e/utils/KubernetesCommandLineToolsExecutor.ts

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.

@SkorikSergey
SkorikSergey marked this pull request as ready for review November 5, 2026 09:36

@dmytro-ndp dmytro-ndp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to merge.

@dmytro-ndp
dmytro-ndp merged commit 66e73db into eclipse-che:main Nov 5, 2026
3 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants